﻿using ServerApp.Tool;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Timers;
using YServer;

namespace ServerApp
{
    class Program
    {
        //public static Timer timer;

        static void Main(string[] args)
        {
            Y_Server server = new Y_Server(666, 40, 5);
            server.center = new HandlerCenter();

            server.Start();
            //Console.WriteLine(DateTime.Now.Ticks);
            //TimeEventHandler.Instance.AddMission(new TimeEventModel(() =>
            //{
            //    Console.WriteLine("do");
            //}, 1, -1));
            //TimeEventHandler.Instance.AddMission(new TimeEventModel(() =>
            //{
            //    Console.WriteLine("doooooo");
            //}, 2, 6));
            //timer = new Timer(1000);
            //timer.Elapsed += (object sender, ElapsedEventArgs e) => { Console.WriteLine("do"); };
            ////timer.AutoReset = false;
            //timer.Start();
            
            while (true) { }
        }
    }
}
